package com.teacher.service;

import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.moraleducation.MoralEducationAddDto;
import com.teacher.pojo.dto.moraleducation.MoralEducationUpdateDto;
import com.teacher.pojo.entity.MoralEducationTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.moraleducationtask.MoralEducationGetVo;

/**
 * <p>
 * 德育素质审批表 服务类
 * </p>
 *
 * @author zfm
 * @since 2021-08-03
 */
public interface IMoralEducationTaskService extends IService<MoralEducationTask> {

    /**
     * 发起德育素质审批流程
     *
     * @param dto
     * @return
     */
    CommonResult<String> add(MoralEducationAddDto dto);

    /**
     * 更新流程
     *
     * @param dto
     * @return
     */
    CommonResult<String> updateInfo(MoralEducationUpdateDto dto);

    /**
     * 获取详情
     *
     * @param id
     * @return
     */
    CommonResult<MoralEducationGetVo> getDetails(Long id);
}
